<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class CommissionFlow extends TimeModel
{

    protected $name = "commission_flow";

    protected $deleteTime = "delete_time";

    
    public function commissionType()
    {
        return $this->belongsTo('\app\admin\model\CommissionType', 'commission_type', 'id');
    }

    public function theOrder()
    {
        return $this->belongsTo('\app\admin\model\Order', 'order_id', 'id');
    }

    public function groupMaster()
    {
        return $this->belongsTo('\app\admin\model\GroupMaster', 'master_id', 'id');
    }


    
    public function getCommissionStatusList()
    {
        return ['0'=>'待结算','1'=>'已结算','2'=>'已拒绝'];
    }

}